package pstube.gui;

import java.awt.Dimension;

import enums.AppletNameValues;
import enums.Language;

public class GuiConfig {
	
	private String AppletName = "PStube";
	private String AppletVersion = "2011.06.x.0.1";
	
	private int def_applet_height = 100;
	private int def_applet_width  = 300;
	
	private int def_button_height = 8;
	private int def_button_width  = 8;
	
	private int def_longbutton_height = 8;
	private int def_longbutton_width  = 140;

	
	private int def_input_height = 8;
	private int def_input_width  = 180;
	
	private int def_longinput_height = 8;
	private int def_longinput_width  = 360;
	
	private Language def_lng = Language.german;
	
	public GuiConfig() {
		// TODO Auto-generated constructor stub
	}
	
	public Language getLanguage(){
		return def_lng;
	}
	
	public String getAppleName(AppletNameValues value){
		switch(value){
			case FullName	: return AppletName + " " + AppletVersion;
			case Name		: return AppletName;
			case Version	: return AppletVersion;
			default			: return AppletName;
		}
	}
	
	public Dimension getAppletDimension(){
		return new Dimension(def_applet_height, def_applet_width);
	}
	
	public Dimension getButtonDimension(){
		return new Dimension(def_button_height, def_button_width);
	}
	
	public Dimension getLongButtonDimension(){
		return new Dimension(def_longbutton_height, def_longbutton_width);
	}

	public Dimension getInputDimension(){
		return new Dimension(def_input_height, def_input_width);
	}
	
	public Dimension getLongInputDimension(){
		return new Dimension(def_longinput_height, def_longinput_width);
	}
}
